import request from '@/utils/request'

const api = {

  GetList(data, method) {
    return request({
      url: '/api/Blog/blognews/GetList?type='+data,
      method: method || 'post',
    })
  },

  Update(data, method) {
    return request({
      url: '/api/Blog/blognews/Update',
      method: method || 'post',
      data: data
    })
  },
  UpdateMore(data, method) {
    return request({
      url: '/api/Blog/blognews/UpdateMore',
      method: method || 'post',
      data: data
    })
  },

  upload(data, method) {
    return request({
      url: '/assets/group1/upload',
      method: method || 'post',
      data: data
    })
  },
  
  ChangePassword(data, method) {
    return request({
      url: '/api/Admin/User/ChangePassword',
      method: method || 'post',
      data: data
    })
  },

  // 删除接口
 Deleteblogfiles(data) {
  return request({
    url: '/api/Blog/blogfiles/Deleteblogfiles?id='+data,
    method: 'post'
  })
}
}

export default api
